package com.ruoyi.common.customize.redis.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author gdk
 * @since 2022/9/19 19:54
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.redis")
public class RedisCustomizeProperties {
	/**
	 * 地址
	 */
	private String host;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 端口
	 */
	private String port;
	/**
	 * 数据库
	 */
	private Integer database = 0;
}
